draw: call vfunc rather then emit signal for the common case
authorAlexander Larsson <alexl@redhat.com>
Mon, 14 Sep 2015 09:36:43 +0000 (11:36 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 14 Sep 2015 11:18:56 +0000 (13:18 +0200)
commitcdd951e927ad37933eb12f62fc6eaafe542a7c29
tree09a46c2e21ff779ac81bc0a940650a531b898729
parentd5f1754981129094afbe5d9c1d57e41599fad410
draw: call vfunc rather then emit signal for the common case

This avoids a lot of overhead in the common case where a signal
is not connected and we're just using the class vfunc (which is true
for all in-libgtk widgets). Additionally it makes backtraces in
debuggers and profiles much much nicer to look at.

https://bugzilla.gnome.org/show_bug.cgi?id=754986
gtk/gtkwidget.c